find limits of functions